//
//  Radio.h
//  WWXELuShang
//
//  Created by lanou on 15/12/19.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface Radio : NSObject



//什么鬼ID
@property (nonatomic,strong)NSString *IDD;

//电台节目名称
@property (nonatomic,strong)NSString *album;

//电台节目简介
@property (nonatomic,strong)NSString *content;

//播放时间
@property (nonatomic,strong)NSString *programtime;


//专辑图片
@property (nonatomic,strong)NSString *radiopicurl;


//开始时间
@property (nonatomic,strong)NSString *starttime;


//结束时间
@property (nonatomic,strong)NSString *endtime;

//id,节目里的id
@property (nonatomic,strong)NSString *ID;


//电台听歌
@property (nonatomic,strong)NSString *radioinfourl;


//电台timestamp 不知道什么鬼
@property (nonatomic,strong)NSString *timestamp;


+ (Radio *)shareJsonWithDictionary:(NSDictionary *)dictionary;


+ (Radio *)shareWithRadio;

@property (nonatomic,assign)BOOL isReadyToPlay;
@property (nonatomic,assign)BOOL isReadyToBarrage;

- (void)starPlayRadio; //开始播放电台
- (void)stopRadio; //停止播放电台

@property (nonatomic,strong) AVPlayer *player;
@property (nonatomic,strong) AVPlayerItem *playerItem;



//根据url播放一首歌
- (void)playWithUrl:(NSString *)url;


@end
